package com.ddzh.web;

import com.ddzh.entity.Result;
import com.ddzh.service.AuthMenuTreeVoService;
import com.ddzh.vo.AuthMenuTreeVo;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/authMenuTreeVoController")
public class AuthMenuTreeVoController {


    @Reference
    private AuthMenuTreeVoService authMenuTreeVoService;

//    @GetMapping("/getAuthMenuByUsername/{username}")
//    public List<AuthMenuTreeVo> getAuthMenuByUsername(String username){
//        return authMenuTreeVoService.getAuthMenuByUsername(username);
//    }

    public AuthMenuTreeVo getAuthMenuByUsername(String username){
        return authMenuTreeVoService.getAuthMenuByUsername(username);
    }
}
